package com.docker.fy.controller;

import com.docker.common.annotation.Anonymous;
import com.docker.common.core.controller.BaseController;
import com.docker.common.core.domain.AjaxResult;
import com.docker.common.core.domain.entity.SysUser;
import com.docker.fy.service.TestFyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 23118
 * @version 1.0
 * @description: TODO
 * @date 2025/4/9 10:23
 */
@RestController
@RequestMapping("/test")
public class TestFyController extends BaseController {

    @Autowired
    private TestFyService testService;

    @Anonymous
    @RequestMapping("/getUser")
    public AjaxResult hello(){
        //获取用户信息
        SysUser sysUser = testService.getUser();
        return AjaxResult.success(sysUser);
    }


}
